package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

/**
 * @Description:
 * @Author: yp
 */
public interface PermissionDao {
    /**
     * 根据角色id查询出权限
     * @param roleId
     * @return
     */
    Set<Permission> findByRoleId(Integer roleId);

    Page<Permission> selectConditions(String queryString);

    void add(Permission permission);

    Permission findById(Integer id);

    void edit(Permission permission);

    long findCountByCheckItemId(Integer id);

    void deleteById(Integer id);

    List<Permission> findAll();
}
